{extend name="base" /}

{block name="content"}

<div class="panel panel-flat">
	<div class="panel-body mb-2 ml-1">
		<a class="btn btn-primary" href="{:url('add')}"><i class="icon-add mr-2"></i> 新增管理员</a>
	</div>
</div>

<div class="card border-top-primary">

	<div class="table-responsive">
		<table class="table table-bordered table-striped">
			<thead>
			<tr>
				<th><strong>ID</strong></th>
				<th><strong>账号</strong></th>
				<th><strong>管理组</strong></th>
				<th><strong>注册日期</strong></th>
				<th><strong>操作</strong></th>
			</tr>
			</thead>
			<tbody>
			{foreach name="lists" item="info"}
			<tr>
				<td>{$info.id}</td>
				<td>{$info.name}</td>
				<td>{$info.group_name}</td>
				<td>{$info.create_tm}</td>
				<td>
					<a href="{:url('admin/edit?id='.$info['id'])}"><i class="icon icon-pencil7"></i> 编辑</a>
				</td>
			</tr>
			{/foreach}

			</tbody>
		</table>
		<div class="text-center m-2">
			{$_page}
		</div>
	</div>

</div>
<!-- /material icon set -->
{/block}
{block name="script"}
<script>
	$(function(){
		$("#J_search").click(function(e){
			$(this).parents("form").submit();
		})
	})
</script>
{/block}

